<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>搜索：{{ $search_text }}</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书搜索图书列表">
    <meta name="keywords" content="夜读书">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')
<div id="search">
    @include('mobile.navsearch_txt')
    <div class="mod search-list">
        @if ($books->count() != 0)
        @foreach ($books as $book)
        <a href="{{url('mobile/info')}}/{{ $book->book_id }}" target="_blank">
        <dl>
        <dt>            
            <img src="{{ asset($book->bimg) }}">
        </dt>
        <dd>
            {{ $book->book_name }}
            <div class="desc">
            @if($book->zuozhe!=""){{ $book->zuozhe }} /@endif 
            @if($book->yizhe!=""){{ $book->yizhe }} / @endif 
            @if($book->chubanshe!=""){{ $book->chubanshe }} /@endif 
            @if($book->chubannian!=""){{ $book->chubannian }} /@endif
            @if($book->dingjia!=""){{ $book->dingjia }}元@endif
            </div>
            <div class="rating">
            <span class="allstar"></span>
            <span class="rating_nums">@if($book->click_count!="")阅读：{{ $book->click_count }}@endif</span>
            </div>
        </dd>
        </dl>
        </a>
        @endforeach
        @else
            您搜索的图书暂时不存在！
            <p><a href={{url('uaddbooks')}}>去添加书籍>></a></p>
        @endif
    </div>
</div> 
<div> 
{!! $books->appends(['search_text' => $search_text])->render() !!}
</div>
</body>
</html>